﻿create table dbo.AuthorizeCodes (
   AuthorizeCodeId      nvarchar(10)         collate Chinese_PRC_CI_AS not null,
   AuthorizeName        nvarchar(50)         collate Chinese_PRC_CI_AS null,
   ParentAuthorizeCodeId nvarchar(10)         collate Chinese_PRC_CI_AS null,
   CreateBy             nvarchar(10)         collate Chinese_PRC_CI_AS null,
   CreateOn             datetime             null constraint DF_Table_1_CreateOn default getdate(),
   ModifyBy             nvarchar(10)         collate Chinese_PRC_CI_AS null,
   ModifyOn             datetime             null,
   constraint PK_Table_1 primary key (AuthorizeCodeId)
         on "PRIMARY"
)
on "PRIMARY"
go

execute sp_addextendedproperty 'MS_Description', 
   '授权代码ID',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'AuthorizeCodeId'
go

execute sp_addextendedproperty 'MS_Description', 
   '授权名称',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'AuthorizeName'
go

execute sp_addextendedproperty 'MS_Description', 
   '上级代码ID',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'ParentAuthorizeCodeId'
go

execute sp_addextendedproperty 'MS_Description', 
   '创建人',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'CreateBy'
go

execute sp_addextendedproperty 'MS_Description', 
   '创建时间',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'CreateOn'
go

execute sp_addextendedproperty 'MS_Description', 
   '更改人',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'ModifyBy'
go

execute sp_addextendedproperty 'MS_Description', 
   '更改时间',
   'user', 'dbo', 'table', 'AuthorizeCodes', 'column', 'ModifyOn'
go